package com.xinqi.modules.sys.stats.convert;

import com.xinqi.common.mapstruct.CommonConvertConfig;
import com.xinqi.modules.sys.stats.domain.ClassTeachingDayStEntity;
import com.xinqi.modules.sys.stats.dto.req.ClassTeachingDayStCreateDTO;
import com.xinqi.modules.sys.stats.dto.req.ClassTeachingDayStUpdateDTO;
import com.xinqi.modules.sys.stats.dto.rsp.ClassTeachingDayStResultDTO;
import org.mapstruct.Mapper;
import org.mapstruct.MappingTarget;

/**
 * 班级教学数据统计转换
 *
 * @author: wenjie
 * @date: 2023/08/24
 */
@Mapper(config = CommonConvertConfig.class)
public abstract class ClassTeachingDayStConvert {
    public abstract ClassTeachingDayStEntity create(ClassTeachingDayStCreateDTO s);

    public abstract ClassTeachingDayStEntity update(ClassTeachingDayStUpdateDTO s, @MappingTarget ClassTeachingDayStEntity t);

    public abstract ClassTeachingDayStEntity update(ClassTeachingDayStUpdateDTO s);

    public abstract ClassTeachingDayStResultDTO convert(ClassTeachingDayStEntity s);
}
